
asmMono:
	Entrar
	init
	.for:
		mov byte [edi],0xFF
		cmp byte [esi],0x80
		jae .cont
		mov byte [edi],0x00
		
		.cont:
		;mov byte [edi],0x80
		inc esi
		inc edi
		loop .for
	Salir

merge:
	Entrar

	mov eax, HH
	mul dword WW
	mov ecx, eax

	mov esi, SRC1
	mov ebx, SRC2
	mov edi, DST_M
	.for:
		xor eax, eax
		xor edx, edx
		mov al, [esi]
		mov dl, [ebx]
		shr al, 1
		shr dl, 1
		add eax, edx
		mov [edi], al
		inc edi
		inc esi
		inc ebx
	loop .for
	Salir

andFilter:
	Entrar

	mov eax, HH
	mul dword WW
	mov ecx, eax

	mov esi, SRC1
	mov ebx, SRC2
	mov edi, DST_M
	.for:
		xor eax, eax
		xor edx, edx
		mov al, [esi]
		and al, [ebx]
		mov [edi], al
		inc edi
		inc esi
		inc ebx
	loop .for
	Salir

nandFilter:
	Entrar

	mov eax, HH
	mul dword WW
	mov ecx, eax

	mov esi, SRC1
	mov ebx, SRC2
	mov edi, DST_M
	.for:
		xor eax, eax
		xor edx, edx
		mov al, [ebx]
		not al
		and al, [esi]
		mov [edi], al
		inc edi
		inc esi
		inc ebx
	loop .for
	Salir

suma:
	Entrar

	mov eax, HH
	mul dword WW
	mov ecx, eax

	mov esi, SRC1
	mov ebx, SRC2
	mov edi, DST_M
	.for:
		xor eax, eax
		xor edx, edx
		mov al, [esi]
		mov dl, [ebx]
		add eax, edx
		mov [edi], al
		inc edi
		inc esi
		inc ebx
	loop .for
	Salir

